package com.aidex.system.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@Data
@EqualsAndHashCode(callSuper = true)
@Api(tags = "个性化配置")
public class SysTableConfig extends BaseEntity {

    @NotBlank(message = "表唯一性编码")
    @ApiModelProperty("表唯一性编码")
    private String tableKey;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("间距")
    private String space;

    @ApiModelProperty("对应列集合JSON")
    private String columns;

    @ApiModelProperty("小页名称")
    @NotBlank(message = "状态（0正常 1删除 2停用）")
    @Excel(name = "状态" , readConverterExp = "0=正常,1=删除，2=停用")
    private String status;

    @ApiModelProperty("小页名称")
    @Excel(name = "配置类型" , readConverterExp = "U=用户设置,S=系统配置")
    private String configType;


}